package com.mbc.hr.entities;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

@SuppressWarnings("serial")
@Entity
@Table(name="HR_EmployeeAttendancePenalty")
@NamedQueries({
	@NamedQuery(name="EmployeeAttendancePenalty.findByEmployeeIDInDatePenaltyType",query="SELECT eap FROM EmployeeAttendancePenalty eap WHERE eap.employeeID = :employeeID AND eap.datetime_ = :datetime AND eap.penaltyType = :penaltyType")
})
public class EmployeeAttendancePenalty implements Serializable {
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private long penaltyID;
	private Date createdDate;
	private Long createdBy;
	private Date modifiedDate;
	private Long modifiedBy;
	private long employeeID;
	private Date datetime_;
	private byte penaltyType;
	private int minutes;
	private int status;
	private float absentPeriod;
	
	public int getMinutes() {
		return minutes;
	}
	public void setMinutes(int minutes) {
		this.minutes = minutes;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public long getPenaltyID() {
		return penaltyID;
	}
	public void setPenaltyID(long penaltyID) {
		this.penaltyID = penaltyID;
	}
	public Date getCreatedDate() {
		return createdDate;
	}
	public void setCreatedDate(Date createdDate) {
		this.createdDate = createdDate;
	}
	public Long getCreatedBy() {
		return createdBy;
	}
	public void setCreatedBy(Long createdBy) {
		this.createdBy = createdBy;
	}
	public Date getModifiedDate() {
		return modifiedDate;
	}
	public void setModifiedDate(Date modifiedDate) {
		this.modifiedDate = modifiedDate;
	}
	public Long getModifiedBy() {
		return modifiedBy;
	}
	public void setModifiedBy(Long modifiedBy) {
		this.modifiedBy = modifiedBy;
	}
	public long getEmployeeID() {
		return employeeID;
	}
	public void setEmployeeID(long employeeID) {
		this.employeeID = employeeID;
	}
	public byte getPenaltyType() {
		return penaltyType;
	}
	public void setPenaltyType(byte penaltyType) {
		this.penaltyType = penaltyType;
	}
	public Date getDatetime_() {
		return datetime_;
	}
	public void setDatetime_(Date inDate) {
		this.datetime_ = inDate;
	}
	public float getAbsentPeriod() {
		return absentPeriod;
	}
	public void setAbsentPeriod(float absentPeriod) {
		this.absentPeriod = absentPeriod;
	}
}
